package com.ruoyi.project.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.LblCsFeedbackMapper;
import com.ruoyi.project.system.domain.LblCsFeedback;
import com.ruoyi.project.system.service.ILblCsFeedbackService;

/**
 * 意见反馈Service业务层处理
 * 
 * @author BaoL
 * @date 2023-04-10
 */
@Service
public class LblCsFeedbackServiceImpl implements ILblCsFeedbackService 
{
    @Autowired
    private LblCsFeedbackMapper lblCsFeedbackMapper;

    /**
     * 查询意见反馈
     * 
     * @param id 意见反馈ID
     * @return 意见反馈
     */
    @Override
    public LblCsFeedback selectLblCsFeedbackById(Long id)
    {
        return lblCsFeedbackMapper.selectLblCsFeedbackById(id);
    }

    /**
     * 查询意见反馈列表
     * 
     * @param lblCsFeedback 意见反馈
     * @return 意见反馈
     */
    @Override
    public List<LblCsFeedback> selectLblCsFeedbackList(LblCsFeedback lblCsFeedback)
    {
        return lblCsFeedbackMapper.selectLblCsFeedbackList(lblCsFeedback);
    }

    /**
     * 新增意见反馈
     * 
     * @param lblCsFeedback 意见反馈
     * @return 结果
     */
    @Override
    public int insertLblCsFeedback(LblCsFeedback lblCsFeedback)
    {
        lblCsFeedback.setCreateTime(DateUtils.getNowDate());
        return lblCsFeedbackMapper.insertLblCsFeedback(lblCsFeedback);
    }

    /**
     * 修改意见反馈
     * 
     * @param lblCsFeedback 意见反馈
     * @return 结果
     */
    @Override
    public int updateLblCsFeedback(LblCsFeedback lblCsFeedback)
    {
        lblCsFeedback.setUpdateTime(DateUtils.getNowDate());
        return lblCsFeedbackMapper.updateLblCsFeedback(lblCsFeedback);
    }

    /**
     * 批量删除意见反馈
     * 
     * @param ids 需要删除的意见反馈ID
     * @return 结果
     */
    @Override
    public int deleteLblCsFeedbackByIds(Long[] ids)
    {
        return lblCsFeedbackMapper.deleteLblCsFeedbackByIds(ids);
    }

    /**
     * 删除意见反馈信息
     * 
     * @param id 意见反馈ID
     * @return 结果
     */
    @Override
    public int deleteLblCsFeedbackById(Long id)
    {
        return lblCsFeedbackMapper.deleteLblCsFeedbackById(id);
    }
}
